package com.hlk.hlk_blog.service;


import com.hlk.hlk_blog.entity.User;

/**
 * Created by limi on 2017/10/15.
 */
public interface UserService {
    //根据id获取user
    User findUserById(Long id);

    //根据username获取user用来判断用户名是否已存在
    String getUserName(String username);

    //登录
    User login(String username, String password);

    //添加用户
    boolean insertUser(User user);
    /*修改用户*/
    int updateUser(User user);

}
